package com.dandan.tzx.service;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.dandan.tzx.App;

/**
 * Created by tanzhenxing
 * Date: 2018/1/1 上午11:25
 * Description:
 */

@Route(path = FunServices.PATH, name = "FunServices")
public class FunServices implements IService {
    public static final String PATH = "/service/showToast";
    @Override
    public void showToast(Context context, CharSequence msg) {
        Toast.makeText(App.getApp(), msg, Toast.LENGTH_SHORT).show();
    }

    @Override
    public void init(Context context) {
        Log.d("FunServices", "init() called with: context = [" + context + "]");
    }
}
